package com.sptpc.learnspring.service;

import com.sptpc.learnspring.controller.request.SearchOrderRequest;
import com.sptpc.learnspring.model.Order;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

public interface IOrderService {
    Order addNewOrder(Order newOrder);

    Page<Order> searchOrders(SearchOrderRequest condition, PageRequest page);
}
